import Vue from 'vue'
import Router from 'vue-router'
import register from '@/components/register'
import login from '@/components/login'
import weibo_callback from '@/components/weibo_callback'
import simuser from '@/components/simuser'
import binduser from '@/components/binduser'
import addgoods from '@/components/week1/addgoods'
import send_email from '@/components/send_email'
import reset_pwd from '@/components/reset_pwd'
import addgame from '@/components/app01/addgame'
import addhero from '@/components/app01/addhero'
import showgame from '@/components/app01/showgame'
import showhero from '@/components/app01/showhero'
import updategame from '@/components/app01/updategame'
import updatehero from '@/components/app01/updatehero'
import adduser from '@/components/week2/adduser'
import showuser from '@/components/week2/showuser'
import fuwenben from '@/components/fuwenben'
import index from '@/components/index'
import areashow from '@/components/areashow'
import detail2 from '@/components/detail2'
import loginbook from '@/components/week3/loginbook'
import showbook from '@/components/week3/showbook'
import detailbuy from '@/components/detailbuy'
import order from '@/components/order'
import orderS from '@/components/orderS'
import addlistt from '@/components/app02/addlistt'
import showlistt from '@/components/app02/showlistt'
import loginv from '@/components/app02/loginv'
import addauthor from '@/components/week4/addauthor'
import addbook from '@/components/week4/addbook'
import showbook1 from '@/components/week4/showbook1'
import addbooks from '@/components/app03/addbooks'
import showbooks from '@/components/app03/showbooks'
import updatebook from '@/components/app03/updatebook'





Vue.use(Router)

export default new Router({
  routes: [
   
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/weibo_callback',
      name: 'weibo_callback',
      component: weibo_callback
    },
    {
      path: '/simuser',
      name: 'simuser',
      component: simuser
    },
    {
      path: '/binduser',
      name: 'binduser',
      component: binduser
    },
    {
      path: '/addgoods',
      name: 'addgoods',
      component:addgoods
    },
    {
      path: '/send_email',
      name: 'send_email',
      component:send_email
    },
    {
      path: '/reset_pwd',
      name: 'reset_pwd',
      component:reset_pwd
    },
    {
      path: '/addgame',
      name: 'addgame',
      component:addgame
    },
    {
      path: '/addhero',
      name: 'addhero',
      component:addhero
    },
    {
      path: '/showgame',
      name: 'showgame',
      component:showgame
    },
    {
      path: '/showhero',
      name: 'showhero',
      component:showhero
    },
    {
      path: '/updategame',
      name: 'updategame',
      component:updategame
    },
    {
      path: '/updatehero',
      name: 'updatehero',
      component:updatehero
    },
    {
      path: '/adduser',
      name: 'adduser',
      component:adduser
    },
    {
      path: '/showuser',
      name: 'showuser',
      component:showuser
    },
    {
      path: '/fuwenben',
      name: 'fuwenben',
      component:fuwenben
    },
    {
      path: '/index',
      name: 'index',
      component:index
    },
    {
      path: '/areashow',
      name: 'areashow',
      component:areashow
    },
    {
      path: '/detail2/:id',
      name: 'detail2',
      component:detail2
    },
    {
      path: '/loginbook',
      name: 'loginbook',
      component:loginbook
    },
    {
      path: '/showbook',
      name: 'showbook',
      component:showbook
    },
    {
      path: '/detailbuy',
      name: 'detailbuy',
      component:detailbuy
    },
    {
      path: '/addlistt',
      name: 'addlistt',
      component:addlistt
    },
    {
      path: '/showlistt',
      name: 'showlistt',
      component:showlistt
    },
    {
      path: '/order',
      name: 'order',
      component:order
    },
    {
      path: '/orderS',
      name: 'orderS',
      component:orderS
    },
    {
      path: '/loginv',
      name: 'loginv',
      component:loginv
    },
    {
      path: '/addauthor',
      name: 'addauthor',
      component:addauthor
    },
    {
      path: '/addbook',
      name: 'addbook',
      component:addbook
    },
    {
      path: '/showbook1',
      name: 'showbook1',
      component:showbook1
    },
    {
      path: '/addbooks',
      name: 'addbooks',
      component:addbooks
    },
    {
      path: '/showbooks',
      name: 'showbooks',
      component:showbooks
    },
    {
      path: '/updatebook',
      name: 'updatebook',
      component:updatebook
    },
  ]
})
